package flyGin

import (
	"github.com/gin-gonic/gin"
	"gofly/flyGin/controller"
	"gofly/ws"
)

func InitApiRouter(g *gin.Engine) {
	//websocket请求
	wsGroup := g.Group("/ws")
	{
		wsGroup.GET("/visitor", ws.NewVisitorWs)
		wsGroup.GET("/agents", ws.NewAgentWs)
	}
	g.POST("/message", controller.SendMessage)

}
